package com.ysw.validator.custom_validator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Documented
@Constraint(validatedBy = {CustomLimitValidator.class})
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface CustomLimit {
    String message() default "数据类型错误";

    Class<?>[] groups() default {};

    int n() default 3;

    Class<? extends Payload>[] payload() default {};
}
